package app.gt.service.dialogs;

import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.widget.EditText;
import app.gt.service.sharing.SendSharingInformation;


public class AppDialogs {



public static void NotifyD(Context context, String message ) {

	AlertDialog.Builder alertbox = new AlertDialog.Builder(context);
	alertbox.setMessage(message);
	alertbox.setInverseBackgroundForced(true);
	alertbox.setNeutralButton("Ok", new DialogInterface.OnClickListener() {
		 
        // click listener on the alert box
        public void onClick(DialogInterface arg0, int arg1) {
            // the button was clicked
           
        }
    });

    // show it
    alertbox.show();
}
public static void SharingComments(Context context) {

	AlertDialog.Builder alertbox = new AlertDialog.Builder(context);
	
	 final EditText input = new EditText(context);

	
	alertbox.setView(input);
	alertbox.setTitle("Comments");
	alertbox.setInverseBackgroundForced(true);
	alertbox.setPositiveButton("Ok", new DialogInterface.OnClickListener() {
        public void onClick(DialogInterface dialog, int whichButton) {
        String value = input.getText().toString().trim();
        SendSharingInformation.SharingGetComments(value);
		  
}
});
	alertbox.setNegativeButton("Cancel",
            new DialogInterface.OnClickListener() {
                             public void onClick(DialogInterface dialog, int whichButton) {
                             dialog.cancel();
                     }
                     });


    // show it
    alertbox.show();
}
}
